﻿using System;

class PrimeNumber
{
    static void Main()
    {
        int number;

        Console.WriteLine("Type number:");
        bool isNumberValid = int.TryParse(Console.ReadLine(), out number);
        bool isPrime = true;

        if (isNumberValid)
        {
            for (int i = 2; i < number; i++)
            {
                if (number % i == 0)
                {
                    isPrime = false;
                    break;
                }
            }
            if (isPrime)
            {
                Console.WriteLine("Number is prime");
            }
            else
            {
                Console.WriteLine("Number is NOT prime");
            }
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}